<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>图书系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/css/style.css}" />
    <script type="text/javascript">
        function jieshu() {
        alert("借书成功，库存数量 -1。") ;
        }
        function huangshu() {
            alert("还书成功，库存数量 +1。");
        }
    </script>
</head>
<body onload="getTime()">
<div id="wrap">
    <div id="top_content">
        <div id="header">
            <div id="rightheader">
                <p>

                    <br />
                </p>
            </div>
            <div id="topheader">
                <h1 id="title">
                    <a href="#">spring boot图书管</a>
                </h1>
            </div>
            <div id="navigation">
            </div>
        </div>
        <div id="content">
            <p id="whereami">
            </p>
            <h1>
                欢迎来到spring boot 图书馆
            </h1>
            <form th:action="@{/user/login2}" method="post">
            <table class="table">
                <tr class="table_header">
                    <td>
                        条形码
                    </td>
                    <td>
                        书名
                    </td>
                    <td>
                        出版社
                    </td>
                    <td>
                        版次
                    </td>
                    <td>
                        出版日期
                    </td>
                    <td>
                        操作
                    </td>
                </tr>
                <tr class="row1" th:each = "emp:${emps}">
                    <td>
                        <span th:text="${emp.id}"></span>
                    </td>
                    <td>
                        <span th:text="${emp.name}"></span>
                    </td>
                    <td>
                        <span th:text="${emp.salary}"></span>
                    </td>
                    <td>
                        <span th:text="${emp.age}"></span>
                    </td>
                    <td>
                        <span th:text="${#dates.format(emp.bir,'yyyy-MM-dd')}"></span>
                    </td>
                    <td>
                        <a onclick="jieshu()">借书</a>&nbsp;<a onclick="huangshu()">还书</a>
                    </td>
                </tr>
            </table>

            </form>
        </div>
    </div>
    <div id="footer">
        <div id="footer_bg">

        </div>
    </div>
</div>
</body>
</html>
